package com.toocms.jinjuhang.ui.mine.management_system.withdraw

import com.toocms.jinjuhang.R
import com.toocms.jinjuhang.BR
import com.toocms.jinjuhang.databinding.FgtWithdrawBinding
import com.toocms.jinjuhang.ui.base.BaseFgt
import com.toocms.tab.TooCMSApplication

class WithdrawFgt : BaseFgt<FgtWithdrawBinding, WithdrawModel>() {
    override fun onFragmentCreated() {
        topBar.setTitle(R.string.str_withdraw)
        topBar.addRightTextButton(R.string.str_withdraw_record,R.id.menu_withdraw_record).setOnClickListener {
            startFragment(WithdrawRecordFgt::class.java)
        }
    }

    override fun getLayoutResId() = R.layout.fgt_withdraw

    override fun getVariableId() = BR.withdrawModel

    override fun viewObserver() {

    }

    override fun getViewModel() = WithdrawModel(TooCMSApplication.getInstance(), arguments)
}